home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume5 / lwf / part03 < prev    next >
Encoding:
Internet Message Format  |  1989-02-03  |  52.1 KB

  1. Path: xanth!nic.MR.NET!hal!ncoast!allbery
  2. From: lee@uhccux.uhcc.Hawaii.Edu (Greg Lee )
  3. Newsgroups: comp.sources.misc
  4. Subject: v05i003: lwf (print Japanese on LW), part 3 of 3
  5. Message-ID: <8810201559.AA14583@uhccux.uhcc.Hawaii.Edu>
  6. Date: 22 Oct 88 02:36:32 GMT
  7. Sender: allbery@ncoast.UUCP
  8. Reply-To: lee@uhccux.uhcc.Hawaii.Edu (Greg Lee )
  9. Lines: 1983
  10. Approved: allbery@ncoast.UUCP
  11.  
  12. Posting-number: Volume 5, Issue 3
  13. Submitted-by: "Greg Lee " <lee@uhccux.uhcc.Hawaii.Edu>
  14. Archive-name: lwf/Part3
  15.  
  16. #! /bin/sh
  17. # This is a shell archive.  Remove anything before this line, then unpack
  18. # it by saving it into a file and typing "sh file".  To overwrite existing
  19. # files, type "sh file -c".  You can also feed this as standard input via
  20. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  21. # will see the following message at the end:
  22. #        "End of archive 3 (of 3)."
  23. # Contents:  Xproto.h
  24. # Wrapped by lee@uhccux on Wed Oct 19 17:12:34 1988
  25. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  26. if test -f 'Xproto.h' -a "${1}" != "-c" ; then 
  27.   echo shar: Will not clobber existing file \"'Xproto.h'\"
  28. else
  29. echo shar: Extracting \"'Xproto.h'\" \(49611 characters\)
  30. sed "s/^X//" >'Xproto.h' <<'END_OF_FILE'
  31. X/*
  32. X *    $Header: Xproto.h,v 1.74 88/01/30 17:48:56 rws Exp $
  33. X */
  34. X
  35. X/* Definitions for the X window system used by server and c bindings */
  36. X
  37. X/*
  38. X * This packet-construction scheme makes the following assumptions:
  39. X *
  40. X * 1. The compiler is able
  41. X * to generate code which addresses one- and two-byte quantities.
  42. X * In the worst case, this would be done with bit-fields.  If bit-fields
  43. X * are used it may be necessary to reorder the request fields in this file,
  44. X * depending on the order in which the machine assigns bit fields to
  45. X * machine words.  There may also be a problem with sign extension,
  46. X * as K+R specify that bitfields are always unsigned.
  47. X *
  48. X * 2. 2- and 4-byte fields in packet structures must be ordered by hand
  49. X * such that they are naturally-aligned, so that no compiler will ever
  50. X * insert padding bytes.
  51. X *
  52. X * 3. All packets are hand-padded to a multiple of 4 bytes, for
  53. X * the same reason.
  54. X */
  55. X
  56. X#ifndef XPROTO_H
  57. X#define XPROTO_H
  58. X
  59. X/***********************************************************
  60. XCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts,
  61. Xand the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  62. X
  63. X                        All Rights Reserved
  64. X
  65. XPermission to use, copy, modify, and distribute this software and its 
  66. Xdocumentation for any purpose and without fee is hereby granted, 
  67. Xprovided that the above copyright notice appear in all copies and that
  68. Xboth that copyright notice and this permission notice appear in 
  69. Xsupporting documentation, and that the names of Digital or MIT not be
  70. Xused in advertising or publicity pertaining to distribution of the
  71. Xsoftware without specific, written prior permission.  
  72. X
  73. XDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  74. XALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  75. XDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  76. XANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  77. XWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  78. XARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  79. XSOFTWARE.
  80. X
  81. X******************************************************************/
  82. X
  83. X#include "Xmd.h"  
  84. X#include "Xprotostr.h"
  85. X
  86. X/* For the purpose of the structure definitions in this file,
  87. Xwe must redefine the following types in terms of Xmd.h's types, which may
  88. Xinclude bit fields.  All of these are #undef'd at the end of this file,
  89. Xrestoring the definitions in X.h.  */
  90. X
  91. X#define Window CARD32
  92. X#define Drawable CARD32
  93. X#define Font CARD32
  94. X#define Pixmap CARD32
  95. X#define Cursor CARD32
  96. X#define Colormap CARD32
  97. X#define GContext CARD32
  98. X#define Atom CARD32
  99. X#define VisualID CARD32
  100. X#define Time CARD32
  101. X#define KeyCode CARD8
  102. X#define KeySym CARD32
  103. X
  104. X#define X_TCP_PORT 6000     /* add display number */
  105. X
  106. X#define xTrue        1
  107. X#define xFalse       0
  108. X
  109. X
  110. Xtypedef CARD16 KeyButMask;
  111. X
  112. X/***************** 
  113. X   connection setup structure.  This is followed by
  114. X   numRoots xWindowRoot structs.
  115. X*****************/
  116. X
  117. Xtypedef struct {
  118. X    CARD8    byteOrder;
  119. X    BYTE    pad;
  120. X    CARD16    majorVersion B16, minorVersion B16;
  121. X    CARD16    nbytesAuthProto B16;    /* Authorization protocol */
  122. X    CARD16    nbytesAuthString B16;    /* Authorization string */
  123. X    CARD16    pad2;
  124. X} xConnClientPrefix;
  125. X
  126. Xtypedef struct {
  127. X    BOOL           success;
  128. X    BYTE           lengthReason; /*num bytes in string following if failure */
  129. X    CARD16         majorVersion B16, 
  130. X                   minorVersion B16;
  131. X    CARD16         length B16;  /* 1/4 additional bytes in setup info */
  132. X} xConnSetupPrefix;
  133. X
  134. X
  135. Xtypedef struct {
  136. X    CARD32         release B32;
  137. X    CARD32         ridBase B32, 
  138. X                   ridMask B32;
  139. X    CARD32         motionBufferSize B32;
  140. X    CARD16         nbytesVendor B16;  /* number of bytes in vendor string */
  141. X    CARD16         maxRequestSize B16;
  142. X    CARD8          numRoots;          /* number of roots structs to follow */
  143. X    CARD8          numFormats;        /* number of pixmap formats */
  144. X    CARD8          imageByteOrder;        /* LSBFirst, MSBFirst */
  145. X    CARD8          bitmapBitOrder;        /* LeastSignificant, MostSign...*/
  146. X    CARD8          bitmapScanlineUnit,     /* 8, 16, 32 */
  147. X                   bitmapScanlinePad;     /* 8, 16, 32 */
  148. X    KeyCode       minKeyCode, maxKeyCode;
  149. X    CARD32       pad2 B32;
  150. X} xConnSetup;
  151. X
  152. Xtypedef struct {
  153. X    CARD8          depth;
  154. X    CARD8          bitsPerPixel;
  155. X    CARD8          scanLinePad;
  156. X    CARD8          pad1;
  157. X    CARD32       pad2 B32;
  158. X} xPixmapFormat;
  159. X
  160. X/* window root */
  161. X
  162. Xtypedef struct {
  163. X    CARD8     depth;
  164. X    CARD8     pad1;
  165. X    CARD16    nVisuals B16;  /* number of xVisualType structures following */
  166. X    CARD32    pad2 B32;
  167. X    } xDepth;
  168. X
  169. Xtypedef struct {
  170. X    VisualID visualID B32;
  171. X    CARD8 class;
  172. X    CARD8 bitsPerRGB;
  173. X    CARD16 colormapEntries B16;
  174. X    CARD32 redMask B32, greenMask B32, blueMask B32;
  175. X    CARD32 pad B32;
  176. X    } xVisualType;
  177. X
  178. Xtypedef struct {
  179. X    Window         windowId B32;
  180. X    Colormap       defaultColormap B32;
  181. X    CARD32         whitePixel B32, blackPixel B32;
  182. X    CARD32         currentInputMask B32;   
  183. X    CARD16         pixWidth B16, pixHeight B16;
  184. X    CARD16         mmWidth B16, mmHeight B16;
  185. X    CARD16         minInstalledMaps B16, maxInstalledMaps B16;
  186. X    VisualID       rootVisualID B32;
  187. X    CARD8          backingStore;
  188. X    BOOL           saveUnders;
  189. X    CARD8          rootDepth;
  190. X    CARD8          nDepths;  /* number of xDepth structures following */
  191. X} xWindowRoot;
  192. X
  193. X
  194. X/*****************************************************************
  195. X * Structure Defns
  196. X *   Structures needed for replies 
  197. X *****************************************************************/
  198. X
  199. X/* Used in GetMotionEvents */
  200. X
  201. Xtypedef struct {
  202. X    CARD32 time B32;
  203. X    CARD16 x B16, y B16;
  204. X} xTimecoord;
  205. X
  206. Xtypedef struct {
  207. X    CARD8 family;
  208. X    BYTE pad;
  209. X    CARD16 length B16;
  210. X} xHostEntry;
  211. X
  212. Xtypedef struct {
  213. X    INT16 leftSideBearing B16,
  214. X      rightSideBearing B16,
  215. X      characterWidth B16,
  216. X      ascent B16,
  217. X      descent B16;
  218. X    CARD16 attributes B16;
  219. X} xCharInfo;
  220. X
  221. Xtypedef struct {
  222. X    Atom name B32;
  223. X    CARD32 value B32;
  224. X} xFontProp;
  225. X
  226. X/*
  227. X * non-aligned big-endian font ID follows this struct
  228. X */
  229. Xtypedef struct {           /* followed by string */
  230. X    CARD8 len;    /* number of *characters* in string, or FontChange (255)
  231. X           for font change, or 0 if just delta given */
  232. X    INT8 delta;
  233. X} xTextElt;
  234. X
  235. X
  236. Xtypedef struct {        
  237. X    CARD32 pixel B32;
  238. X    CARD16 red B16, green B16, blue B16;
  239. X    CARD8 flags;  /* DoRed, DoGreen, DoBlue booleans */
  240. X    CARD8 pad;
  241. X} xColorItem;
  242. X
  243. X
  244. Xtypedef struct {
  245. X    CARD16 red B16, green B16, blue B16, pad B16;
  246. X} xrgb;
  247. X
  248. Xtypedef CARD8 KEYCODE;
  249. X
  250. X
  251. X/*****************
  252. X * XRep:
  253. X *    meant to be 32 byte quantity 
  254. X *****************/
  255. X
  256. X#ifdef NEED_REPLIES
  257. X
  258. X/* GenericReply is the common format of all replies.  The "data" items
  259. X   are specific to each individual reply type. */
  260. X
  261. Xtypedef struct {    
  262. X    BYTE type;              /* X_Reply */
  263. X    BYTE data1;             /* depends on reply type */
  264. X    CARD16 sequenceNumber B16;  /* of last request received by server */
  265. X    CARD32 length B32;      /* 4 byte quantities beyond size of GenericReply */
  266. X    CARD32 data00 B32;
  267. X    CARD32 data01 B32;
  268. X    CARD32 data02 B32;
  269. X    CARD32 data03 B32;
  270. X    CARD32 data04 B32;
  271. X    CARD32 data05 B32;
  272. X    } xGenericReply;
  273. X
  274. X/* Individual reply formats. */
  275. X
  276. Xtypedef struct {
  277. X    BYTE type;  /* X_Reply */
  278. X    CARD8 backingStore;
  279. X    CARD16 sequenceNumber B16;
  280. X    CARD32 length B32;    /* NOT 0; this is an extra-large reply */
  281. X    VisualID visualID B32;
  282. X    CARD16 class B16;
  283. X    CARD8 bitGravity;
  284. X    CARD8 winGravity;
  285. X    CARD32 backingBitPlanes B32;
  286. X    CARD32 backingPixel B32;
  287. X    BOOL saveUnder;
  288. X    BOOL mapInstalled;
  289. X    CARD8 mapState;
  290. X    BOOL override;
  291. X    Colormap colormap B32;
  292. X    CARD32 allEventMasks B32;
  293. X    CARD32 yourEventMask B32;
  294. X    CARD16 doNotPropagateMask B16;
  295. X    CARD16 pad B16;
  296. X    } xGetWindowAttributesReply;
  297. X
  298. Xtypedef struct {
  299. X    BYTE type;   /* X_Reply */
  300. X    CARD8 depth;
  301. X    CARD16 sequenceNumber B16;
  302. X    CARD32 length B32;  /* 0 */
  303. X    Window root B32;
  304. X    INT16 x B16, y B16;
  305. X    CARD16 width B16, height B16;
  306. X    CARD16 borderWidth B16;
  307. X    CARD16 pad1 B16;
  308. X    CARD32 pad2 B32;
  309. X    CARD32 pad3 B32;
  310. X    } xGetGeometryReply;
  311. X
  312. Xtypedef struct {
  313. X    BYTE type;  /* X_Reply */
  314. X    BYTE pad1;
  315. X    CARD16 sequenceNumber B16;
  316. X    CARD32 length B32;
  317. X    Window root B32, parent B32;
  318. X    CARD16 nChildren B16;
  319. X    CARD16 pad2 B16;
  320. X    CARD32 pad3 B32;
  321. X    CARD32 pad4 B32;
  322. X    CARD32 pad5 B32;
  323. X    } xQueryTreeReply;
  324. X
  325. Xtypedef struct {
  326. X    BYTE type;  /* X_Reply */
  327. X    BYTE pad1;
  328. X    CARD16 sequenceNumber B16;
  329. X    CARD32 length B32; /* 0 */
  330. X    Atom atom B32;
  331. X    CARD32 pad2 B32;
  332. X    CARD32 pad3 B32;
  333. X    CARD32 pad4 B32;
  334. X    CARD32 pad5 B32;
  335. X    CARD32 pad6 B32;
  336. X    } xInternAtomReply;
  337. X
  338. Xtypedef struct {
  339. X    BYTE type;  /* X_Reply */
  340. X    BYTE pad1;
  341. X    CARD16 sequenceNumber B16;
  342. X    CARD32 length B32;  /* of additional bytes */
  343. X    CARD16 nameLength B16;  /* # of characters in name */
  344. X    CARD16 pad2 B16;
  345. X    CARD32 pad3 B32;
  346. X    CARD32 pad4 B32;
  347. X    CARD32 pad5 B32;
  348. X    CARD32 pad6 B32;
  349. X    CARD32 pad7 B32;
  350. X    } xGetAtomNameReply;
  351. X
  352. Xtypedef struct {
  353. X    BYTE type;  /* X_Reply */
  354. X    CARD8 format;
  355. X    CARD16 sequenceNumber B16;
  356. X    CARD32 length B32; /* of additional bytes */
  357. X    Atom propertyType B32;
  358. X    CARD32 bytesAfter B32;
  359. X    CARD32 nItems B32; /* # of 8, 16, or 32-bit entities in reply */
  360. X    CARD32 pad1 B32;
  361. X    CARD32 pad2 B32;
  362. X    CARD32 pad3 B32;
  363. X    } xGetPropertyReply;
  364. X
  365. Xtypedef struct {
  366. X    BYTE type;  /* X_Reply */
  367. X    BYTE pad1;
  368. X    CARD16 sequenceNumber B16;
  369. X    CARD32 length B32;
  370. X    CARD16 nProperties B16;
  371. X    CARD16 pad2 B16;
  372. X    CARD32 pad3 B32;
  373. X    CARD32 pad4 B32;
  374. X    CARD32 pad5 B32;
  375. X    CARD32 pad6 B32;
  376. X    CARD32 pad7 B32;
  377. X    } xListPropertiesReply;
  378. X
  379. Xtypedef struct {
  380. X    BYTE type;  /* X_Reply */
  381. X    BYTE pad1;
  382. X    CARD16 sequenceNumber B16;
  383. X    CARD32 length B32;  /* 0 */
  384. X    Window owner B32;
  385. X    CARD32 pad2 B32;
  386. X    CARD32 pad3 B32;
  387. X    CARD32 pad4 B32;
  388. X    CARD32 pad5 B32;
  389. X    CARD32 pad6 B32;
  390. X    } xGetSelectionOwnerReply;
  391. X
  392. Xtypedef struct {
  393. X    BYTE type;  /* X_Reply */
  394. X    BYTE status;
  395. X    CARD16 sequenceNumber B16;
  396. X    CARD32 length B32;  /* 0 */
  397. X    CARD32 pad1 B32;
  398. X    CARD32 pad2 B32;
  399. X    CARD32 pad3 B32;
  400. X    CARD32 pad4 B32;
  401. X    CARD32 pad5 B32;
  402. X    CARD32 pad6 B32;
  403. X    } xGrabPointerReply;
  404. X
  405. Xtypedef xGrabPointerReply xGrabKeyboardReply;
  406. X
  407. Xtypedef struct {
  408. X    BYTE type;  /* X_Reply */
  409. X    BOOL sameScreen;
  410. X    CARD16 sequenceNumber B16;
  411. X    CARD32 length B32;  /* 0 */
  412. X    Window root B32, child B32;
  413. X    INT16 rootX B16, rootY B16, winX B16, winY B16;
  414. X    CARD16 mask B16;
  415. X    CARD16 pad1 B16;
  416. X    CARD32 pad B32;
  417. X    } xQueryPointerReply;
  418. X
  419. Xtypedef struct {
  420. X    BYTE type;  /* X_Reply */
  421. X    BYTE pad1;
  422. X    CARD16 sequenceNumber B16;
  423. X    CARD32 length B32;
  424. X    CARD32 nEvents B32;
  425. X    CARD32 pad2 B32;
  426. X    CARD32 pad3 B32;
  427. X    CARD32 pad4 B32;
  428. X    CARD32 pad5 B32;
  429. X    CARD32 pad6 B32;
  430. X    } xGetMotionEventsReply;
  431. X
  432. Xtypedef struct {
  433. X    BYTE type;  /* X_Reply */
  434. X    BOOL sameScreen;
  435. X    CARD16 sequenceNumber B16;
  436. X    CARD32 length B32; /* 0 */
  437. X    Window child B32;
  438. X    INT16 dstX B16, dstY B16;
  439. X    CARD32 pad2 B32;
  440. X    CARD32 pad3 B32;
  441. X    CARD32 pad4 B32;
  442. X    CARD32 pad5 B32;
  443. X    } xTranslateCoordsReply;
  444. X
  445. Xtypedef struct {
  446. X    BYTE type;  /* X_Reply */
  447. X    CARD8 revertTo;
  448. X    CARD16 sequenceNumber B16;
  449. X    CARD32 length B32;  /* 0 */
  450. X    Window focus B32;
  451. X    CARD32 pad1 B32;
  452. X    CARD32 pad2 B32;
  453. X    CARD32 pad3 B32;
  454. X    CARD32 pad4 B32;
  455. X    CARD32 pad5 B32;
  456. X    } xGetInputFocusReply;
  457. X
  458. Xtypedef struct {
  459. X    BYTE type;  /* X_Reply */
  460. X    BYTE pad1;
  461. X    CARD16 sequenceNumber B16;
  462. X    CARD32 length B32;  /* 2, NOT 0; this is an extra-large reply */
  463. X    BYTE map[32];
  464. X    } xQueryKeymapReply;
  465. X
  466. X/* Warning: this MUST match (up to component renaming) xListFontsWithInfoReply */
  467. Xtypedef struct {
  468. X    BYTE type;  /* X_Reply */
  469. X    BYTE pad1;
  470. X    CARD16 sequenceNumber B16;
  471. X    CARD32 length B32;  /* definitely > 0, even if "nCharInfos" is 0 */
  472. X    xCharInfo minBounds; 
  473. X#ifndef WORD64
  474. X    CARD32 walign1 B32;
  475. X#endif
  476. X    xCharInfo maxBounds; 
  477. X#ifndef WORD64
  478. X    CARD32 walign2 B32;
  479. X#endif
  480. X    CARD16 minCharOrByte2 B16, maxCharOrByte2 B16;
  481. X    CARD16 defaultChar B16;
  482. X    CARD16 nFontProps B16;  /* followed by this many xFontProp structures */
  483. X    CARD8 drawDirection;
  484. X    CARD8 minByte1, maxByte1;
  485. X    BOOL allCharsExist;
  486. X    INT16 fontAscent B16, fontDescent B16;
  487. X    CARD32 nCharInfos B32; /* followed by this many xCharInfo structures */
  488. X} xQueryFontReply;
  489. X
  490. Xtypedef struct {
  491. X    BYTE type;  /* X_Reply */
  492. X    CARD8 drawDirection;
  493. X    CARD16 sequenceNumber B16;
  494. X    CARD32 length B32;  /* 0 */
  495. X    INT16 fontAscent B16, fontDescent B16;
  496. X    INT16 overallAscent B16, overallDescent B16;
  497. X    INT32 overallWidth B32, overallLeft B32, overallRight B32;
  498. X    CARD32 pad B32;
  499. X    } xQueryTextExtentsReply;
  500. X
  501. Xtypedef struct {
  502. X    BYTE type;  /* X_Reply */
  503. X    BYTE pad1;
  504. X    CARD16 sequenceNumber B16;
  505. X    CARD32 length B32;
  506. X    CARD16 nFonts B16;
  507. X    CARD16 pad2 B16;
  508. X    CARD32 pad3 B32;
  509. X    CARD32 pad4 B32;
  510. X    CARD32 pad5 B32;
  511. X    CARD32 pad6 B32;
  512. X    CARD32 pad7 B32;
  513. X    } xListFontsReply;
  514. X
  515. X/* Warning: this MUST match (up to component renaming) xQueryFontReply */
  516. Xtypedef struct {
  517. X    BYTE type;  /* X_Reply */
  518. X    CARD8 nameLength;  /* 0 indicates end-of-reply-sequence */
  519. X    CARD16 sequenceNumber B16;
  520. X    CARD32 length B32;  /* definitely > 0, even if "nameLength" is 0 */
  521. X    xCharInfo minBounds; 
  522. X#ifndef WORD64
  523. X    CARD32 walign1 B32;
  524. X#endif
  525. X    xCharInfo maxBounds; 
  526. X#ifndef WORD64
  527. X    CARD32 walign2 B32;
  528. X#endif
  529. X    CARD16 minCharOrByte2 B16, maxCharOrByte2 B16;
  530. X    CARD16 defaultChar B16;
  531. X    CARD16 nFontProps B16;  /* followed by this many xFontProp structures */
  532. X    CARD8 drawDirection;
  533. X    CARD8 minByte1, maxByte1;
  534. X    BOOL allCharsExist;
  535. X    INT16 fontAscent B16, fontDescent B16;
  536. X    CARD32 nReplies B32;   /* hint as to how many more replies might be coming */
  537. X} xListFontsWithInfoReply;
  538. X
  539. Xtypedef struct {
  540. X    BYTE type;  /* X_Reply */
  541. X    BYTE pad1;
  542. X    CARD16 sequenceNumber B16;
  543. X    CARD32 length B32;
  544. X    CARD16 nPaths B16;
  545. X    CARD16 pad2 B16;
  546. X    CARD32 pad3 B32;
  547. X    CARD32 pad4 B32;
  548. X    CARD32 pad5 B32;
  549. X    CARD32 pad6 B32;
  550. X    CARD32 pad7 B32;
  551. X    } xGetFontPathReply;
  552. X
  553. Xtypedef struct {
  554. X    BYTE type;  /* X_Reply */
  555. X    CARD8 depth;
  556. X    CARD16 sequenceNumber B16;
  557. X    CARD32 length B32;
  558. X    VisualID visual B32;
  559. X    CARD32 pad3 B32;
  560. X    CARD32 pad4 B32;
  561. X    CARD32 pad5 B32;
  562. X    CARD32 pad6 B32;
  563. X    CARD32 pad7 B32;
  564. X    } xGetImageReply;
  565. X
  566. Xtypedef struct {
  567. X    BYTE type;  /* X_Reply */
  568. X    BYTE pad1;
  569. X    CARD16 sequenceNumber B16;
  570. X    CARD32 length B32;
  571. X    CARD16 nColormaps B16;
  572. X    CARD16 pad2 B16;
  573. X    CARD32 pad3 B32;
  574. X    CARD32 pad4 B32;
  575. X    CARD32 pad5 B32;
  576. X    CARD32 pad6 B32;
  577. X    CARD32 pad7 B32;
  578. X    } xListInstalledColormapsReply;
  579. X
  580. Xtypedef struct {
  581. X    BYTE type; /* X_Reply */
  582. X    BYTE pad1;
  583. X    CARD16 sequenceNumber B16;
  584. X    CARD32 length B32;   /* 0 */
  585. X    CARD16 red B16, green B16, blue B16;
  586. X    CARD16 pad2 B16;
  587. X    CARD32 pixel B32;
  588. X    CARD32 pad3 B32;
  589. X    CARD32 pad4 B32;
  590. X    CARD32 pad5 B32;
  591. X    } xAllocColorReply;
  592. X
  593. Xtypedef struct {
  594. X    BYTE type; /* X_Reply */
  595. X    BYTE pad1;
  596. X    CARD16 sequenceNumber B16;
  597. X    CARD32 length B32;  /* 0 */
  598. X    CARD32 pixel B32;
  599. X    CARD16 exactRed B16, exactGreen B16, exactBlue B16;
  600. X    CARD16 screenRed B16, screenGreen B16, screenBlue B16;
  601. X    CARD32 pad2 B32;
  602. X    CARD32 pad3 B32;
  603. X    } xAllocNamedColorReply;
  604. X
  605. Xtypedef struct {
  606. X    BYTE type;  /* X_Reply */
  607. X    BYTE pad1;
  608. X    CARD16 sequenceNumber B16;
  609. X    CARD32 length B32;
  610. X    CARD16 nPixels B16, nMasks B16;
  611. X    CARD32 pad3 B32;
  612. X    CARD32 pad4 B32;
  613. X    CARD32 pad5 B32;
  614. X    CARD32 pad6 B32;
  615. X    CARD32 pad7 B32;
  616. X    } xAllocColorCellsReply;
  617. X
  618. Xtypedef struct {
  619. X    BYTE type; /* X_Reply */
  620. X    BYTE pad1;
  621. X    CARD16 sequenceNumber B16;
  622. X    CARD32 length B32;
  623. X    CARD16 nPixels B16;
  624. X    CARD16 pad2 B16;
  625. X    CARD32 redMask B16, greenMask B16, blueMask B16;
  626. X    CARD32 pad3 B32;
  627. X    CARD32 pad4 B32;
  628. X    } xAllocColorPlanesReply;
  629. X
  630. Xtypedef struct {
  631. X    BYTE type; /* X_Reply */
  632. X    BYTE pad1;
  633. X    CARD16 sequenceNumber B16;
  634. X    CARD32 length B32;
  635. X    CARD16 nColors B16;
  636. X    CARD16 pad2 B16;
  637. X    CARD32 pad3 B32;
  638. X    CARD32 pad4 B32;
  639. X    CARD32 pad5 B32;
  640. X    CARD32 pad6 B32;
  641. X    CARD32 pad7 B32;
  642. X    } xQueryColorsReply;
  643. X
  644. Xtypedef struct {
  645. X    BYTE type;  /* X_Reply */
  646. X    BYTE pad1;
  647. X    CARD16 sequenceNumber B16;
  648. X    CARD32 length B32;  /* 0 */
  649. X    CARD16 exactRed B16, exactGreen B16, exactBlue B16;
  650. X    CARD16 screenRed B16, screenGreen B16, screenBlue B16;
  651. X    CARD32 pad3 B32;
  652. X    CARD32 pad4 B32;
  653. X    CARD32 pad5 B32;
  654. X    } xLookupColorReply;
  655. X
  656. Xtypedef struct {
  657. X    BYTE type;  /* X_Reply */
  658. X    BYTE pad1;
  659. X    CARD16 sequenceNumber B16;
  660. X    CARD32 length B32;  /* 0 */
  661. X    CARD16 width B16, height B16;
  662. X    CARD32 pad3 B32;
  663. X    CARD32 pad4 B32;
  664. X    CARD32 pad5 B32;
  665. X    CARD32 pad6 B32;
  666. X    CARD32 pad7 B32;
  667. X    } xQueryBestSizeReply;
  668. X
  669. Xtypedef struct {
  670. X    BYTE type;  /* X_Reply */
  671. X    BYTE pad1;
  672. X    CARD16 sequenceNumber B16;
  673. X    CARD32 length B32; /* 0 */
  674. X    BOOL  present;
  675. X    CARD8 major_opcode;
  676. X    CARD8 first_event;
  677. X    CARD8 first_error;
  678. X    CARD32 pad3 B32;
  679. X    CARD32 pad4 B32;
  680. X    CARD32 pad5 B32;
  681. X    CARD32 pad6 B32;
  682. X    CARD32 pad7 B32;
  683. X    } xQueryExtensionReply;
  684. X
  685. Xtypedef struct {
  686. X    BYTE type;  /* X_Reply */
  687. X    CARD8 nExtensions;
  688. X    CARD16 sequenceNumber B16;
  689. X    CARD32 length B32;
  690. X    CARD32 pad2 B32;
  691. X    CARD32 pad3 B32;
  692. X    CARD32 pad4 B32;
  693. X    CARD32 pad5 B32;
  694. X    CARD32 pad6 B32;
  695. X    CARD32 pad7 B32;
  696. X    } xListExtensionsReply;
  697. X
  698. X
  699. Xtypedef struct {
  700. X    BYTE   type;  /* X_Reply */
  701. X    CARD8  success;
  702. X    CARD16 sequenceNumber B16;
  703. X    CARD32 length B32;
  704. X    CARD32 pad2 B32;
  705. X    CARD32 pad3 B32;
  706. X    CARD32 pad4 B32;
  707. X    CARD32 pad5 B32;
  708. X    CARD32 pad6 B32;
  709. X    CARD32 pad7 B32;
  710. X    } xSetMappingReply;
  711. Xtypedef xSetMappingReply xSetPointerMappingReply;
  712. Xtypedef xSetMappingReply xSetModifierMappingReply;
  713. X
  714. Xtypedef struct {
  715. X    BYTE type;  /* X_Reply */
  716. X    CARD8 nElts;  /* how many elements does the map have */
  717. X    CARD16 sequenceNumber B16;
  718. X    CARD32 length B32;
  719. X    CARD32 pad2 B32;
  720. X    CARD32 pad3 B32;
  721. X    CARD32 pad4 B32;
  722. X    CARD32 pad5 B32;
  723. X    CARD32 pad6 B32;
  724. X    CARD32 pad7 B32;
  725. X    } xGetPointerMappingReply;
  726. X
  727. Xtypedef struct {
  728. X    BYTE type;
  729. X    CARD8 keySymsPerKeyCode;
  730. X    CARD16 sequenceNumber B16;
  731. X    CARD32 length B32;
  732. X    CARD32 pad2 B32;
  733. X    CARD32 pad3 B32;
  734. X    CARD32 pad4 B32;
  735. X    CARD32 pad5 B32;
  736. X    CARD32 pad6 B32;
  737. X    CARD32 pad7 B32;
  738. X} xGetKeyboardMappingReply;    
  739. X
  740. Xtypedef struct {
  741. X    BYTE type;
  742. X    CARD8 numKeyPerModifier;
  743. X    CARD16 sequenceNumber B16;
  744. X    CARD32 length B32;
  745. X    CARD32 pad1 B32;
  746. X    CARD32 pad2 B32;
  747. X    CARD32 pad3 B32;
  748. X    CARD32 pad4 B32;
  749. X    CARD32 pad5 B32;
  750. X    CARD32 pad6 B32;
  751. X} xGetModifierMappingReply;
  752. X
  753. Xtypedef struct {
  754. X    BYTE type;  /* X_Reply */
  755. X    BOOL globalAutoRepeat;
  756. X    CARD16 sequenceNumber B16;
  757. X    CARD32 length B32;  /* 5 */
  758. X    CARD32 ledMask B32;
  759. X    CARD8 keyClickPercent, bellPercent;
  760. X    CARD16 bellPitch B16, bellDuration B16;
  761. X    CARD16 pad B16;
  762. X    BYTE map[32];  /* bit masks start here */
  763. X    } xGetKeyboardControlReply;
  764. X
  765. Xtypedef struct {
  766. X    BYTE type;  /* X_Reply */
  767. X    BYTE pad1;
  768. X    CARD16 sequenceNumber B16;
  769. X    CARD32 length B32;  /* 0 */
  770. X    CARD16 accelNumerator B16, accelDenominator B16;
  771. X    CARD16 threshold B16;
  772. X    CARD16 pad2 B16;
  773. X    CARD32 pad3 B32;
  774. X    CARD32 pad4 B32;
  775. X    CARD32 pad5 B32;
  776. X    CARD32 pad6 B32;
  777. X    } xGetPointerControlReply;
  778. X
  779. Xtypedef struct {
  780. X    BYTE type;  /* X_Reply */
  781. X    BYTE pad1;
  782. X    CARD16 sequenceNumber B16;
  783. X    CARD32 length B32;  /* 0 */
  784. X    CARD16 timeout B16, interval B16;
  785. X    BOOL preferBlanking;
  786. X    BOOL allowExposures;
  787. X    CARD16 pad2 B16;
  788. X    CARD32 pad3 B32;
  789. X    CARD32 pad4 B32;
  790. X    CARD32 pad5 B32;
  791. X    CARD32 pad6 B32;
  792. X    } xGetScreenSaverReply;
  793. X
  794. Xtypedef struct {
  795. X    BYTE type;  /* X_Reply */
  796. X    BOOL enabled;
  797. X    CARD16 sequenceNumber B16;
  798. X    CARD32 length B32;
  799. X    CARD16 nHosts B16;
  800. X    CARD16 pad1 B16;
  801. X    CARD32 pad3 B32;
  802. X    CARD32 pad4 B32;
  803. X    CARD32 pad5 B32;
  804. X    CARD32 pad6 B32;
  805. X    CARD32 pad7 B32;
  806. X    } xListHostsReply;
  807. X
  808. X#endif /* NEED_REPLIES */
  809. X
  810. X
  811. X
  812. X
  813. X/*****************************************************************
  814. X * Xerror
  815. X *    All errors  are 32 bytes 
  816. X *****************************************************************/
  817. X
  818. Xtypedef struct {
  819. X    BYTE type;                  /* X_Error */
  820. X    BYTE errorCode;
  821. X    CARD16 sequenceNumber B16;       /* the nth request from this client */
  822. X    CARD32 resourceID B32;
  823. X    CARD16 minorCode B16;
  824. X    CARD8 majorCode;
  825. X    BYTE pad1;
  826. X    CARD32 pad3 B32;
  827. X    CARD32 pad4 B32;
  828. X    CARD32 pad5 B32;
  829. X    CARD32 pad6 B32;
  830. X    CARD32 pad7 B32;
  831. X} xError;
  832. X
  833. X/*****************************************************************
  834. X * xEvent
  835. X *    All events are 32 bytes
  836. X *****************************************************************/
  837. X
  838. X#ifdef NEED_EVENTS                /* this hack is necessary because
  839. X                     the symbol table in the library
  840. X                     is too big to link */
  841. X
  842. Xtypedef struct {
  843. X    union {
  844. X    struct {
  845. X        BYTE type;
  846. X        BYTE detail;
  847. X        CARD16 sequenceNumber B16;
  848. X        } u;
  849. X    struct {
  850. X            CARD32 pad00 B32;
  851. X        Time time B32;
  852. X        Window root B32, event B32, child B32;
  853. X        INT16 rootX B16, rootY B16, eventX B16, eventY B16;
  854. X        KeyButMask state B16;
  855. X        BOOL sameScreen;        
  856. X        BYTE pad1;
  857. X    } keyButtonPointer;
  858. X    struct {
  859. X            CARD32 pad00 B32;
  860. X            Time time B32;
  861. X        Window root B32, event B32, child B32;
  862. X        INT16 rootX B16, rootY B16, eventX B16, eventY B16;
  863. X        KeyButMask state B16;
  864. X        BYTE mode;             /* really XMode */
  865. X        BYTE flags;        /* sameScreen and focus booleans, packed together */
  866. X#define ELFlagFocus        (1<<0)
  867. X#define ELFlagSameScreen   (1<<1)
  868. X    } enterLeave;
  869. X    struct {
  870. X            CARD32 pad00 B32;
  871. X        Window window B32;
  872. X        BYTE mode;             /* really XMode */
  873. X        BYTE pad1, pad2, pad3;
  874. X    } focus;
  875. X    struct {
  876. X            CARD32 pad00 B32;
  877. X        Window window B32;
  878. X        CARD16 x B16, y B16, width B16, height B16;
  879. X        CARD16 count B16;
  880. X        CARD16 pad2 B16;
  881. X    } expose;
  882. X    struct {
  883. X            CARD32 pad00 B32;
  884. X        Drawable drawable B32;
  885. X        CARD16 x B16, y B16, width B16, height B16;
  886. X        CARD16 minorEvent B16;
  887. X        CARD16 count B16;
  888. X        BYTE majorEvent;
  889. X        BYTE pad1, pad2, pad3;
  890. X    } graphicsExposure;
  891. X    struct {
  892. X            CARD32 pad00 B32;
  893. X        Drawable drawable B32;
  894. X        CARD16 minorEvent B16;
  895. X        BYTE majorEvent;
  896. X        BYTE bpad;
  897. X    } noExposure;
  898. X    struct {
  899. X            CARD32 pad00 B32;
  900. X        Window window B32;
  901. X        CARD8 state;
  902. X        BYTE pad1, pad2, pad3;
  903. X    } visibility;
  904. X    struct {
  905. X            CARD32 pad00 B32;
  906. X        Window parent B32, window B32;
  907. X        INT16 x B16, y B16;
  908. X        CARD16 width B16, height B16, borderWidth B16;
  909. X        BOOL override;
  910. X        BYTE bpad;
  911. X        } createNotify;
  912. X/*
  913. X * The event feilds in the structures for DestroyNotify, UnmapNotify,
  914. X * MapNotify, ReparentNotify, ConfigureNotify, CirclulateNotify, GravityNotify,
  915. X * must be at the same offset because server internal code is depending upon
  916. X * this to patch up the events before they are delivered.
  917. X * Also note that MapRequest, ConfigureRequest and CirculateRequest have
  918. X * the same offset for the event window.
  919. X */
  920. X    struct {
  921. X            CARD32 pad00 B32;
  922. X        Window event B32, window B32;
  923. X    } destroyNotify;
  924. X    struct {
  925. X            CARD32 pad00 B32;
  926. X        Window event B32, window B32;
  927. X        BOOL fromConfigure;
  928. X        BYTE pad1, pad2, pad3;
  929. X        } unmapNotify;
  930. X    struct {
  931. X            CARD32 pad00 B32;
  932. X        Window event B32, window B32;
  933. X        BOOL override;
  934. X        BYTE pad1, pad2, pad3;
  935. X        } mapNotify;
  936. X    struct {
  937. X            CARD32 pad00 B32;
  938. X        Window parent B32, window B32;
  939. X        } mapRequest;
  940. X    struct {
  941. X            CARD32 pad00 B32;
  942. X        Window event B32, window B32, parent B32;
  943. X        INT16 x B16, y B16;
  944. X        BOOL override;
  945. X        BYTE pad1, pad2, pad3;
  946. X    } reparent;
  947. X    struct {
  948. X            CARD32 pad00 B32;
  949. X        Window event B32, window B32, aboveSibling B32;
  950. X        INT16 x B16, y B16;
  951. X        CARD16 width B16, height B16, borderWidth B16;
  952. X        BOOL override;        
  953. X        BYTE bpad;
  954. X    } configureNotify;
  955. X    struct {
  956. X            CARD32 pad00 B32;
  957. X        Window parent B32, window B32, sibling B32;
  958. X        INT16 x B16, y B16;
  959. X        CARD16 width B16, height B16, borderWidth B16;
  960. X        CARD16 valueMask B16;
  961. X        CARD32 pad1 B32;
  962. X    } configureRequest;
  963. X    struct {
  964. X            CARD32 pad00 B32;
  965. X        Window event B32, window B32;
  966. X        INT16 x B16, y B16;
  967. X        CARD32 pad1, pad2, pad3, pad4;
  968. X    } gravity;
  969. X    struct {
  970. X            CARD32 pad00 B32;
  971. X        Window window B32;
  972. X        CARD16 width B16, height B16;
  973. X    } resizeRequest;
  974. X    struct {
  975. X/* The event field in the circulate record is really the parent when this
  976. X   is used as a CirculateRequest insteaad of a CircluateNotify */
  977. X            CARD32 pad00 B32;
  978. X        Window event B32, window B32, parent B32;
  979. X        BYTE place;            /* Top or Bottom */
  980. X        BYTE pad1, pad2, pad3;
  981. X    } circulate;
  982. X    struct {
  983. X            CARD32 pad00 B32;
  984. X        Window window B32;
  985. X        Atom atom B32;
  986. X        Time time B32;
  987. X        BYTE state;            /* NewValue or Deleted */
  988. X        BYTE pad1;
  989. X        CARD16 pad2 B16;
  990. X    } property;
  991. X    struct {
  992. X            CARD32 pad00 B32;
  993. X            Time time B32;     
  994. X        Window window B32;
  995. X        Atom atom B32;
  996. X    } selectionClear;
  997. X    struct {
  998. X            CARD32 pad00 B32;
  999. X            Time time B32;    
  1000. X        Window owner B32, requestor B32;
  1001. X        Atom selection B32, target B32, property B32;
  1002. X    } selectionRequest;
  1003. X    struct {
  1004. X            CARD32 pad00 B32;
  1005. X            Time time B32;   
  1006. X        Window requestor B32;
  1007. X        Atom selection B32, target B32, property B32;
  1008. X    } selectionNotify;
  1009. X    struct {
  1010. X            CARD32 pad00 B32;
  1011. X        Window window B32;
  1012. X        Colormap colormap B32;
  1013. X        BOOL new;        
  1014. X        BYTE state;            /* Installed or UnInstalled */
  1015. X        BYTE pad1, pad2;
  1016. X    } colormap;
  1017. X    struct {
  1018. X        CARD32 pad00 B32;
  1019. X        CARD8 request;
  1020. X        KeyCode firstKeyCode;
  1021. X        CARD8 count;
  1022. X        BYTE pad1;
  1023. X    } mappingNotify;
  1024. X    struct {
  1025. X            CARD32 pad00 B32;
  1026. X        Window window B32;
  1027. X        union {
  1028. X        struct {
  1029. X            Atom type B32;
  1030. X            INT32 longs0 B32;
  1031. X            INT32 longs1 B32;
  1032. X            INT32 longs2 B32;
  1033. X            INT32 longs3 B32;
  1034. X            INT32 longs4 B32;
  1035. X        } l;
  1036. X        struct {
  1037. X            Atom type B32;
  1038. X            INT16 shorts0 B16;
  1039. X            INT16 shorts1 B16;
  1040. X            INT16 shorts2 B16;
  1041. X            INT16 shorts3 B16;
  1042. X            INT16 shorts4 B16;
  1043. X            INT16 shorts5 B16;
  1044. X            INT16 shorts6 B16;
  1045. X            INT16 shorts7 B16;
  1046. X            INT16 shorts8 B16;
  1047. X            INT16 shorts9 B16;
  1048. X        } s;
  1049. X        struct {
  1050. X            Atom type B32;
  1051. X            INT8 bytes[20];
  1052. X        } b;
  1053. X        } u; 
  1054. X    } clientMessage;
  1055. X    } u;
  1056. X} xEvent;
  1057. X
  1058. X/* KeymapNotify events are not included in the above union because they
  1059. X   are different from all other events: they do not have a "detail"
  1060. X   or "sequenceNumber", so there is room for a 248-bit key mask. */
  1061. X
  1062. Xtypedef struct {
  1063. X    BYTE type;
  1064. X    BYTE map[31];
  1065. X    } xKeymapEvent;
  1066. X
  1067. X#endif /* NEED_EVENTS */
  1068. X
  1069. X#define XEventSize (sizeof(xEvent))
  1070. X
  1071. X/* XReply is the union of all the replies above whose "fixed part"
  1072. Xfits in 32 bytes.  It does NOT include GetWindowAttributesReply,
  1073. XQueryFontReply, QueryKeymapReply, or GetKeyboardControlReply 
  1074. XListFontsWithInfoReply */
  1075. X
  1076. X#ifdef NEED_REPLIES
  1077. X
  1078. Xtypedef union {
  1079. X    xGenericReply generic;
  1080. X    xGetGeometryReply geom;
  1081. X    xQueryTreeReply tree;
  1082. X    xInternAtomReply atom;
  1083. X    xGetAtomNameReply atomName;
  1084. X    xGetPropertyReply property;
  1085. X    xListPropertiesReply listProperties;
  1086. X    xGetSelectionOwnerReply selection;
  1087. X    xGrabPointerReply grabPointer;
  1088. X    xGrabKeyboardReply grabKeyboard;
  1089. X    xQueryPointerReply pointer;
  1090. X    xGetMotionEventsReply motionEvents;
  1091. X    xTranslateCoordsReply coords;
  1092. X    xGetInputFocusReply inputFocus;
  1093. X    xQueryTextExtentsReply textExtents;
  1094. X    xListFontsReply fonts;
  1095. X    xGetFontPathReply fontPath;
  1096. X    xGetImageReply image;
  1097. X    xListInstalledColormapsReply colormaps;
  1098. X    xAllocColorReply allocColor;
  1099. X    xAllocNamedColorReply allocNamedColor;
  1100. X    xAllocColorCellsReply colorCells;
  1101. X    xAllocColorPlanesReply colorPlanes;
  1102. X    xQueryColorsReply colors;
  1103. X    xLookupColorReply lookupColor;
  1104. X    xQueryBestSizeReply bestSize;
  1105. X    xQueryExtensionReply extension;
  1106. X    xListExtensionsReply extensions;
  1107. X    xSetModifierMappingReply setModifierMapping;
  1108. X    xGetModifierMappingReply getModifierMapping;
  1109. X    xSetPointerMappingReply setPointerMapping;
  1110. X    xGetKeyboardMappingReply getKeyboardMapping;
  1111. X    xGetPointerMappingReply getPointerMapping;
  1112. X    xGetPointerControlReply pointerControl;
  1113. X    xGetScreenSaverReply screenSaver;
  1114. X    xListHostsReply hosts;
  1115. X    xError error;
  1116. X#ifdef NEED_EVENTS
  1117. X    xEvent event;
  1118. X#endif /* NEED_EVENTS */
  1119. X} xReply;
  1120. X
  1121. X#endif /* NEED_REPLIES */
  1122. X
  1123. X
  1124. X
  1125. X/*****************************************************************
  1126. X * REQUESTS
  1127. X *****************************************************************/
  1128. X
  1129. X
  1130. X/* Request structure */
  1131. X
  1132. Xtypedef struct {
  1133. X    CARD8 reqType;
  1134. X    CARD8 data;            /* meaning depends on request type */
  1135. X    CARD16 length B16;         /* length in 4 bytes quantities 
  1136. X                  of whole request, including this header */
  1137. X} xReq;
  1138. X
  1139. X/*****************************************************************
  1140. X *  structures that follow request. 
  1141. X *****************************************************************/
  1142. X
  1143. X/* ResourceReq is used for any request which has a resource ID 
  1144. X   (or Atom or Time) as its one and only argument.  */
  1145. X
  1146. Xtypedef struct {
  1147. X    CARD8 reqType;
  1148. X    BYTE pad;
  1149. X    CARD16 length B16;
  1150. X    CARD32 id B32;  /* a Window, Drawable, Font, GContext, Pixmap, etc. */
  1151. X    } xResourceReq;
  1152. X
  1153. Xtypedef struct {
  1154. X    CARD8 reqType;
  1155. X    CARD8 depth;
  1156. X    CARD16 length B16;
  1157. X    Window wid B32, parent B32;
  1158. X    INT16 x B16, y B16;
  1159. X    CARD16 width B16, height B16, borderWidth B16;  
  1160. X    CARD16 class B16;
  1161. X    VisualID visual B32;
  1162. X    CARD32 mask B32;
  1163. X} xCreateWindowReq;
  1164. X
  1165. Xtypedef struct {
  1166. X    CARD8 reqType;
  1167. X    BYTE pad;
  1168. X    CARD16 length B16;
  1169. X    Window window B32;
  1170. X    CARD32 valueMask B32; 
  1171. X} xChangeWindowAttributesReq;
  1172. X
  1173. Xtypedef struct {
  1174. X    CARD8 reqType;
  1175. X    BYTE mode;
  1176. X    CARD16 length B16;
  1177. X    Window window B32;
  1178. X} xChangeSaveSetReq;
  1179. X
  1180. Xtypedef struct {
  1181. X    CARD8 reqType;
  1182. X    BYTE pad;
  1183. X    CARD16 length B16;
  1184. X    Window window B32, parent B32;
  1185. X    INT16 x B16, y B16;
  1186. X} xReparentWindowReq;
  1187. X
  1188. Xtypedef struct {
  1189. X    CARD8 reqType;
  1190. X    CARD8 pad;
  1191. X    CARD16 length B16;
  1192. X    Window window B32;
  1193. X    CARD16 mask B16;
  1194. X    CARD16 pad2 B16;
  1195. X} xConfigureWindowReq;
  1196. X
  1197. Xtypedef struct {
  1198. X    CARD8 reqType;
  1199. X    CARD8 direction;
  1200. X    CARD16 length B16;
  1201. X    Window window B32;
  1202. X} xCirculateWindowReq;
  1203. X
  1204. Xtypedef struct {    /* followed by padded string */
  1205. X    CARD8 reqType;
  1206. X    BOOL onlyIfExists;
  1207. X    CARD16 length B16;
  1208. X    CARD16 nbytes  B16;    /* number of bytes in string */
  1209. X    CARD16 pad B16;
  1210. X} xInternAtomReq;
  1211. X
  1212. Xtypedef struct {
  1213. X    CARD8 reqType;
  1214. X    CARD8 mode;
  1215. X    CARD16 length B16;
  1216. X    Window window B32;
  1217. X    Atom property B32, type B32;
  1218. X    CARD8 format;
  1219. X    BYTE pad[3];
  1220. X    CARD32 nUnits B32;     /* length of stuff following, depends on format */
  1221. X} xChangePropertyReq;
  1222. X
  1223. Xtypedef struct {
  1224. X    CARD8 reqType;
  1225. X    BYTE pad;
  1226. X    CARD16 length B16;
  1227. X    Window window B32;
  1228. X    Atom property B32;
  1229. X} xDeletePropertyReq;
  1230. X
  1231. Xtypedef struct {
  1232. X    CARD8 reqType;
  1233. X    BOOL delete;
  1234. X    CARD16 length B16;
  1235. X    Window window B32;
  1236. X    Atom property B32, type B32;
  1237. X    CARD32 longOffset B32;
  1238. X    CARD32 longLength B32;
  1239. X} xGetPropertyReq;
  1240. Xtypedef struct {
  1241. X    CARD8 reqType;
  1242. X    BYTE pad;
  1243. X    CARD16 length B16;
  1244. X    Window window B32;
  1245. X    Atom selection B32;
  1246. X    Time time B32;
  1247. X} xSetSelectionOwnerReq;
  1248. X
  1249. Xtypedef struct {
  1250. X    CARD8 reqType;
  1251. X    BYTE pad;
  1252. X    CARD16 length B16;
  1253. X    Window requestor B32;
  1254. X    Atom selection B32, target B32, property B32;
  1255. X    Time time B32;
  1256. X    } xConvertSelectionReq;
  1257. X
  1258. X#ifdef NEED_EVENTS
  1259. X
  1260. Xtypedef struct {
  1261. X    CARD8 reqType;
  1262. X    BOOL propagate;
  1263. X    CARD16 length B16;
  1264. X    Window destination B32;
  1265. X    CARD32 eventMask B32;
  1266. X    xEvent event;
  1267. X} xSendEventReq;
  1268. X
  1269. X#endif /* NEED_EVENTS */
  1270. X
  1271. Xtypedef struct {
  1272. X    CARD8 reqType;
  1273. X    BOOL ownerEvents;
  1274. X    CARD16 length B16;
  1275. X    Window grabWindow B32;
  1276. X    CARD16 eventMask B16;
  1277. X    BYTE pointerMode, keyboardMode;
  1278. X    Window confineTo B32;
  1279. X    Cursor cursor B32;
  1280. X    Time time B32;
  1281. X} xGrabPointerReq;
  1282. X
  1283. Xtypedef struct {
  1284. X    CARD8 reqType;
  1285. X    BOOL ownerEvents;
  1286. X    CARD16 length B16;
  1287. X    Window grabWindow B32;
  1288. X    CARD16 eventMask B16;
  1289. X    BYTE pointerMode, keyboardMode;
  1290. X    Window confineTo B32;
  1291. X    Cursor cursor B32;
  1292. X    CARD8 button;
  1293. X    BYTE pad;
  1294. X    CARD16 modifiers B16;
  1295. X} xGrabButtonReq;
  1296. X
  1297. Xtypedef struct {
  1298. X    CARD8 reqType;
  1299. X    CARD8 button;
  1300. X    CARD16 length B16;
  1301. X    Window grabWindow B32;
  1302. X    CARD16 modifiers B16;
  1303. X    CARD16 pad B16;
  1304. X} xUngrabButtonReq;
  1305. X
  1306. Xtypedef struct {
  1307. X    CARD8 reqType;
  1308. X    BYTE pad;
  1309. X    CARD16 length B16;
  1310. X    Cursor cursor B32;
  1311. X    Time time B32;
  1312. X    CARD16 eventMask B16;
  1313. X    CARD16 pad2 B16;
  1314. X} xChangeActivePointerGrabReq;
  1315. X
  1316. Xtypedef struct {
  1317. X    CARD8 reqType;
  1318. X    BOOL ownerEvents;
  1319. X    CARD16 length B16;
  1320. X    Window grabWindow B32;
  1321. X    Time time B32;
  1322. X    BYTE pointerMode, keyboardMode;  
  1323. X    CARD16 pad B16;
  1324. X} xGrabKeyboardReq;
  1325. X
  1326. Xtypedef struct {
  1327. X    CARD8 reqType;
  1328. X    BOOL ownerEvents;
  1329. X    CARD16 length B16;
  1330. X    Window grabWindow B32;
  1331. X    CARD16 modifiers B16;
  1332. X    CARD8 key;
  1333. X    BYTE pointerMode, keyboardMode;  
  1334. X    BYTE pad1, pad2, pad3;
  1335. X} xGrabKeyReq;
  1336. X
  1337. Xtypedef struct {
  1338. X    CARD8 reqType;
  1339. X    CARD8 key;
  1340. X    CARD16 length B16;
  1341. X    Window grabWindow B32;
  1342. X    CARD16 modifiers B16;
  1343. X    CARD16 pad B16;
  1344. X} xUngrabKeyReq;
  1345. X
  1346. Xtypedef struct {
  1347. X    CARD8 reqType;
  1348. X    CARD8 mode;
  1349. X    CARD16 length B16;
  1350. X    Time time B32;
  1351. X} xAllowEventsReq;
  1352. X
  1353. Xtypedef struct {
  1354. X    CARD8 reqType;
  1355. X    BYTE pad;
  1356. X    CARD16 length B16;
  1357. X    Window window B32;
  1358. X    Time start B32, stop B32;
  1359. X} xGetMotionEventsReq;
  1360. X
  1361. Xtypedef struct {
  1362. X    CARD8 reqType;
  1363. X    BYTE pad;
  1364. X    CARD16 length B16;
  1365. X    Window srcWid B32, dstWid B32;
  1366. X    INT16 srcX B16, srcY B16;
  1367. X} xTranslateCoordsReq;
  1368. X
  1369. Xtypedef struct {
  1370. X    CARD8 reqType;
  1371. X    BYTE pad;
  1372. X    CARD16 length B16;
  1373. X    Window srcWid B32, dstWid B32;
  1374. X    INT16 srcX B16, srcY B16;
  1375. X    CARD16 srcWidth B16, srcHeight B16;
  1376. X    INT16 dstX B16, dstY B16;
  1377. X} xWarpPointerReq;
  1378. X
  1379. Xtypedef struct {
  1380. X    CARD8 reqType;
  1381. X    CARD8 revertTo;
  1382. X    CARD16 length B16;
  1383. X    Window focus B32;
  1384. X    Time time B32;
  1385. X} xSetInputFocusReq;
  1386. X
  1387. Xtypedef struct {
  1388. X    CARD8 reqType;
  1389. X    BYTE pad;
  1390. X    CARD16 length B16;
  1391. X    Font fid B32;
  1392. X    CARD16 nbytes B16;
  1393. X    BYTE pad1, pad2;    /* string follows on word boundary */
  1394. X} xOpenFontReq;
  1395. X
  1396. Xtypedef struct {
  1397. X    CARD8 reqType;
  1398. X    BOOL oddLength;
  1399. X    CARD16 length B16;
  1400. X    Font fid B32;
  1401. X    } xQueryTextExtentsReq;
  1402. X
  1403. Xtypedef struct {
  1404. X    CARD8 reqType;
  1405. X    BYTE pad;
  1406. X    CARD16 length B16;
  1407. X    CARD16 maxNames B16;
  1408. X    CARD16 nbytes B16;  /* followed immediately by string bytes */
  1409. X} xListFontsReq;
  1410. X
  1411. Xtypedef xListFontsReq xListFontsWithInfoReq;
  1412. X
  1413. Xtypedef struct {
  1414. X    CARD8 reqType;
  1415. X    BYTE pad;
  1416. X    CARD16 length B16;
  1417. X    CARD16 nFonts B16;
  1418. X    BYTE pad1, pad2;    /* LISTofSTRING8 follows on word boundary */
  1419. X} xSetFontPathReq;
  1420. X
  1421. Xtypedef struct {
  1422. X    CARD8 reqType;
  1423. X    CARD8 depth;
  1424. X    CARD16 length B16;
  1425. X    Pixmap pid B32;
  1426. X    Drawable drawable B32;
  1427. X    CARD16 width B16, height B16;
  1428. X} xCreatePixmapReq;
  1429. X
  1430. Xtypedef struct {
  1431. X    CARD8 reqType;
  1432. X    BYTE pad;
  1433. X    CARD16 length B16;
  1434. X    GContext gc B32;
  1435. X    Drawable drawable B32;
  1436. X    CARD32 mask B32;
  1437. X} xCreateGCReq;
  1438. X
  1439. Xtypedef struct {
  1440. X    CARD8 reqType;
  1441. X    BYTE pad;
  1442. X    CARD16 length B16;
  1443. X    GContext gc B32;
  1444. X    CARD32 mask B32;
  1445. X} xChangeGCReq;    
  1446. X
  1447. Xtypedef struct {
  1448. X    CARD8 reqType;
  1449. X    BYTE pad;
  1450. X    CARD16 length B16;
  1451. X    GContext srcGC B32, dstGC B32;
  1452. X    CARD32 mask B32;
  1453. X} xCopyGCReq;    
  1454. X
  1455. Xtypedef struct {
  1456. X    CARD8 reqType;
  1457. X    BYTE pad;
  1458. X    CARD16 length B16;
  1459. X    GContext gc B32;
  1460. X    CARD16 dashOffset B16;
  1461. X    CARD16 nDashes B16;        /* length LISTofCARD8 of values following */
  1462. X} xSetDashesReq;    
  1463. X
  1464. Xtypedef struct {
  1465. X    CARD8 reqType;
  1466. X    BYTE ordering;
  1467. X    CARD16 length B16;
  1468. X    GContext gc B32;
  1469. X    INT16 xOrigin B16, yOrigin B16;
  1470. X} xSetClipRectanglesReq;    
  1471. X
  1472. Xtypedef struct {
  1473. X    CARD8 reqType;
  1474. X    BOOL exposures;
  1475. X    CARD16 length B16;
  1476. X    Window window B32;
  1477. X    INT16 x B16, y B16;
  1478. X    CARD16 width B16, height B16;
  1479. X} xClearAreaReq;
  1480. X
  1481. Xtypedef struct {
  1482. X    CARD8 reqType;
  1483. X    BYTE pad;
  1484. X    CARD16 length B16;
  1485. X    Drawable srcDrawable B32, dstDrawable B32;
  1486. X    GContext gc B32;
  1487. X    INT16 srcX B16, srcY B16, dstX B16, dstY B16;
  1488. X    CARD16 width B16, height B16;
  1489. X} xCopyAreaReq;    
  1490. X
  1491. Xtypedef struct {
  1492. X    CARD8 reqType;
  1493. X    BYTE pad;
  1494. X    CARD16 length B16;
  1495. X    Drawable srcDrawable B32, dstDrawable B32;
  1496. X    GContext gc B32;
  1497. X    INT16 srcX B16, srcY B16, dstX B16, dstY B16;
  1498. X    CARD16 width B16, height B16;
  1499. X    CARD32 bitPlane B32;
  1500. X} xCopyPlaneReq;    
  1501. X
  1502. Xtypedef struct {
  1503. X    CARD8 reqType;
  1504. X    BYTE coordMode;
  1505. X    CARD16 length B16;
  1506. X    Drawable drawable B32;
  1507. X    GContext gc B32;
  1508. X} xPolyPointReq;    
  1509. X
  1510. Xtypedef xPolyPointReq xPolyLineReq;  /* same request structure */
  1511. X
  1512. X/* The following used for PolySegment, PolyRectangle, PolyArc, PolyFillRectangle, PolyFillArc */
  1513. X
  1514. Xtypedef struct {
  1515. X    CARD8 reqType;
  1516. X    BYTE pad;
  1517. X    CARD16 length B16;
  1518. X    Drawable drawable B32;
  1519. X    GContext gc B32;
  1520. X} xPolySegmentReq;    
  1521. X
  1522. Xtypedef xPolySegmentReq xPolyArcReq;
  1523. Xtypedef xPolySegmentReq xPolyRectangleReq;
  1524. Xtypedef xPolySegmentReq xPolyFillRectangleReq;
  1525. Xtypedef xPolySegmentReq xPolyFillArcReq;
  1526. X
  1527. Xtypedef struct _FillPolyReq {
  1528. X    CARD8 reqType;
  1529. X    BYTE pad;
  1530. X    CARD16 length B16;
  1531. X    Drawable drawable B32;
  1532. X    GContext gc B32;
  1533. X    BYTE shape;
  1534. X    BYTE coordMode;
  1535. X    CARD16 pad1 B16;
  1536. X} xFillPolyReq;    
  1537. X
  1538. X
  1539. Xtypedef struct _PutImageReq {
  1540. X    CARD8 reqType;
  1541. X    CARD8 format;
  1542. X    CARD16 length B16;
  1543. X    Drawable drawable B32;
  1544. X    GContext gc B32;
  1545. X    CARD16 width B16, height B16;
  1546. X    INT16 dstX B16, dstY B16;
  1547. X    CARD8 leftPad;
  1548. X    CARD8 depth;
  1549. X    CARD16 pad B16;
  1550. X} xPutImageReq;    
  1551. X
  1552. Xtypedef struct {
  1553. X    CARD8 reqType;
  1554. X    CARD8 format;
  1555. X    CARD16 length B16;
  1556. X    Drawable drawable B32;
  1557. X    INT16 x B16, y B16;
  1558. X    CARD16 width B16, height B16;
  1559. X    CARD32 planeMask B32;
  1560. X} xGetImageReq;    
  1561. X
  1562. X/* the folloiwng used by PolyText8 and PolyText16 */
  1563. X
  1564. Xtypedef struct {
  1565. X    CARD8 reqType;
  1566. X    CARD8 pad;
  1567. X    CARD16 length B16;
  1568. X    Drawable drawable B32;
  1569. X    GContext gc B32;
  1570. X    INT16 x B16, y B16;        /* items (xTextElt) start after struct */
  1571. X} xPolyTextReq;    
  1572. X
  1573. Xtypedef xPolyTextReq xPolyText8Req;
  1574. Xtypedef xPolyTextReq xPolyText16Req;
  1575. X
  1576. Xtypedef struct {
  1577. X    CARD8 reqType;
  1578. X    BYTE nChars;
  1579. X    CARD16 length B16;
  1580. X    Drawable drawable B32;
  1581. X    GContext gc B32;
  1582. X    INT16 x B16, y B16;
  1583. X} xImageTextReq;    
  1584. X
  1585. Xtypedef xImageTextReq xImageText8Req;
  1586. Xtypedef xImageTextReq xImageText16Req;
  1587. X
  1588. Xtypedef struct {
  1589. X    CARD8 reqType;
  1590. X    BYTE alloc;
  1591. X    CARD16 length B16;
  1592. X    Colormap mid B32;
  1593. X    Window window B32;
  1594. X    VisualID visual B32;
  1595. X} xCreateColormapReq;    
  1596. X
  1597. Xtypedef struct {
  1598. X    CARD8 reqType;
  1599. X    BYTE pad;
  1600. X    CARD16 length B16;
  1601. X    Colormap mid B32;
  1602. X    Colormap srcCmap B32;
  1603. X} xCopyColormapAndFreeReq;    
  1604. X
  1605. Xtypedef struct {
  1606. X    CARD8 reqType;
  1607. X    BYTE pad;
  1608. X    CARD16 length B16;
  1609. X    Colormap cmap B32;
  1610. X    CARD16 red B16, green B16, blue B16;
  1611. X    CARD16 pad2 B16;
  1612. X} xAllocColorReq;    
  1613. X
  1614. Xtypedef struct {
  1615. X    CARD8 reqType;
  1616. X    BYTE pad;
  1617. X    CARD16 length B16;
  1618. X    Colormap cmap B32;
  1619. X    CARD16 nbytes B16;  /* followed by structure */
  1620. X    BYTE pad1, pad2;
  1621. X} xAllocNamedColorReq;    
  1622. X
  1623. Xtypedef struct {
  1624. X    CARD8 reqType;
  1625. X    BOOL contiguous;
  1626. X    CARD16 length B16;
  1627. X    Colormap cmap B32;
  1628. X    CARD16 colors B16, planes B16;
  1629. X} xAllocColorCellsReq;    
  1630. X
  1631. Xtypedef struct {
  1632. X    CARD8 reqType;
  1633. X    BOOL contiguous;
  1634. X    CARD16 length B16;
  1635. X    Colormap cmap B32;
  1636. X    CARD16 colors B16, red B16, green B16, blue B16;
  1637. X} xAllocColorPlanesReq;    
  1638. X
  1639. Xtypedef struct {
  1640. X    CARD8 reqType;
  1641. X    BYTE pad;
  1642. X    CARD16 length B16;
  1643. X    Colormap cmap B32;
  1644. X    CARD32 planeMask B32;
  1645. X} xFreeColorsReq;    
  1646. X
  1647. Xtypedef struct {
  1648. X    CARD8 reqType;
  1649. X    BYTE pad;
  1650. X    CARD16 length B16;
  1651. X    Colormap cmap B32;
  1652. X} xStoreColorsReq;    
  1653. X
  1654. Xtypedef struct {
  1655. X    CARD8 reqType;
  1656. X    CARD8 flags;   /* DoRed, DoGreen, DoBlue, as in xColorItem */
  1657. X    CARD16 length B16;
  1658. X    Colormap cmap B32;
  1659. X    CARD32 pixel B32;
  1660. X    CARD16 nbytes B16;  /* number of name string bytes following structure */
  1661. X    BYTE pad1, pad2;
  1662. X    } xStoreNamedColorReq;
  1663. X
  1664. Xtypedef struct {
  1665. X    CARD8 reqType;
  1666. X    BYTE pad;
  1667. X    CARD16 length B16;
  1668. X    Colormap cmap B32;
  1669. X} xQueryColorsReq;    
  1670. X
  1671. Xtypedef struct {    /* followed  by string of length len */
  1672. X    CARD8 reqType;
  1673. X    BYTE pad;
  1674. X    CARD16 length B16;
  1675. X    Colormap cmap B32;
  1676. X    CARD16 nbytes B16;  /* number of string bytes following structure*/
  1677. X    BYTE pad1, pad2;
  1678. X} xLookupColorReq;    
  1679. X
  1680. Xtypedef struct {
  1681. X    CARD8 reqType;
  1682. X    BYTE pad;
  1683. X    CARD16 length B16;
  1684. X    Cursor cid B32;
  1685. X    Pixmap source B32, mask B32;
  1686. X    CARD16 foreRed B16, foreGreen B16, foreBlue B16;
  1687. X    CARD16 backRed B16, backGreen B16, backBlue B16;
  1688. X    CARD16 x B16, y B16;
  1689. X} xCreateCursorReq;    
  1690. X
  1691. Xtypedef struct {
  1692. X    CARD8 reqType;
  1693. X    BYTE pad;
  1694. X    CARD16 length B16;
  1695. X    Cursor cid B32;
  1696. X    Font source B32, mask B32;
  1697. X    CARD16 sourceChar B16, maskChar B16;
  1698. X    CARD16 foreRed B16, foreGreen B16, foreBlue B16;
  1699. X    CARD16 backRed B16, backGreen B16, backBlue B16;
  1700. X} xCreateGlyphCursorReq;    
  1701. X
  1702. Xtypedef struct {
  1703. X    CARD8 reqType;
  1704. X    BYTE pad;
  1705. X    CARD16 length B16;
  1706. X    Cursor cursor B32;
  1707. X    CARD16 foreRed B16, foreGreen B16, foreBlue B16;
  1708. X    CARD16 backRed B16, backGreen B16, backBlue B16;
  1709. X} xRecolorCursorReq;    
  1710. X
  1711. Xtypedef struct {
  1712. X    CARD8 reqType;
  1713. X    CARD8 class;
  1714. X    CARD16 length B16;
  1715. X    Drawable drawable B32;
  1716. X    CARD16 width B16, height B16;
  1717. X} xQueryBestSizeReq;    
  1718. X
  1719. Xtypedef struct {
  1720. X    CARD8 reqType;
  1721. X    BYTE pad;
  1722. X    CARD16 length B16;
  1723. X    CARD16 nbytes B16;  /* number of string bytes following structure */
  1724. X    BYTE pad1, pad2;
  1725. X} xQueryExtensionReq;
  1726. X
  1727. Xtypedef struct {
  1728. X    CARD8   reqType;
  1729. X    CARD8   numKeyPerModifier;
  1730. X    CARD16  length B16;
  1731. X} xSetModifierMappingReq;
  1732. X
  1733. Xtypedef struct {
  1734. X    CARD8 reqType;
  1735. X    CARD8 nElts;  /* how many elements in the map */
  1736. X    CARD16 length B16;
  1737. X} xSetPointerMappingReq;
  1738. X
  1739. Xtypedef struct {
  1740. X    CARD8 reqType;
  1741. X    BYTE pad;
  1742. X    CARD16 length B16;
  1743. X    KeyCode firstKeyCode;
  1744. X    CARD8 count;
  1745. X    CARD16 pad1 B16;
  1746. X} xGetKeyboardMappingReq;    
  1747. X
  1748. Xtypedef struct {
  1749. X    CARD8 reqType;
  1750. X    CARD8 keyCodes;
  1751. X    CARD16 length B16;
  1752. X    KeyCode firstKeyCode;
  1753. X    CARD8 keySymsPerKeyCode;
  1754. X    CARD16 pad1 B16;
  1755. X} xChangeKeyboardMappingReq;
  1756. X
  1757. Xtypedef struct {
  1758. X    CARD8 reqType;
  1759. X    BYTE pad;
  1760. X    CARD16 length B16;
  1761. X    CARD32 mask B32;
  1762. X} xChangeKeyboardControlReq;    
  1763. X
  1764. Xtypedef struct {
  1765. X    CARD8 reqType;
  1766. X    INT8 percent;  /* -100 to 100 */
  1767. X    CARD16 length B16;
  1768. X} xBellReq;    
  1769. X
  1770. Xtypedef struct {
  1771. X    CARD8 reqType;
  1772. X    BYTE pad;
  1773. X    CARD16 length B16;
  1774. X    INT16 accelNum B16, accelDenum B16;
  1775. X    INT16 threshold B16;             
  1776. X    BOOL doAccel, doThresh;
  1777. X} xChangePointerControlReq;    
  1778. X
  1779. Xtypedef struct {
  1780. X    CARD8 reqType;
  1781. X    BYTE pad;
  1782. X    CARD16 length B16;
  1783. X    INT16 timeout B16, interval B16;
  1784. X    BYTE preferBlank, allowExpose;  
  1785. X    CARD16 pad2 B16;
  1786. X} xSetScreenSaverReq;    
  1787. X
  1788. Xtypedef struct {
  1789. X    CARD8 reqType;
  1790. X    BYTE mode;
  1791. X    CARD16 length B16;
  1792. X    CARD8 hostFamily;
  1793. X    BYTE pad;
  1794. X    CARD16 hostLength B16;
  1795. X} xChangeHostsReq;    
  1796. X
  1797. Xtypedef struct {
  1798. X    CARD8 reqType;
  1799. X    BYTE pad;
  1800. X    CARD16 length B16;
  1801. X    } xListHostsReq;
  1802. X
  1803. Xtypedef struct {
  1804. X    CARD8 reqType;
  1805. X    BYTE mode;
  1806. X    CARD16 length B16;
  1807. X    } xChangeModeReq;
  1808. X
  1809. Xtypedef xChangeModeReq xSetAccessControlReq;
  1810. Xtypedef xChangeModeReq xSetCloseDownModeReq;
  1811. Xtypedef xChangeModeReq xForceScreenSaverReq;
  1812. X
  1813. Xtypedef struct { /* followed by LIST of ATOM */
  1814. X    CARD8 reqType;
  1815. X    BYTE pad;
  1816. X    CARD16 length B16;
  1817. X    Window window B32;
  1818. X    CARD16 nAtoms B16;
  1819. X    INT16 nPositions B16;
  1820. X    } xRotatePropertiesReq;
  1821. X    
  1822. X
  1823. X
  1824. X/* Reply codes */
  1825. X
  1826. X#define X_Reply        1        /* Normal reply */
  1827. X#define X_Error        0        /* Error */
  1828. X
  1829. X/* Request codes */
  1830. X
  1831. X#define X_CreateWindow                  1              
  1832. X#define X_ChangeWindowAttributes        2        
  1833. X#define X_GetWindowAttributes           3     
  1834. X#define X_DestroyWindow                 4
  1835. X#define X_DestroySubwindows             5   
  1836. X#define X_ChangeSaveSet                 6
  1837. X#define X_ReparentWindow                7
  1838. X#define X_MapWindow                     8
  1839. X#define X_MapSubwindows                 9
  1840. X#define X_UnmapWindow                  10
  1841. X#define X_UnmapSubwindows              11  
  1842. X#define X_ConfigureWindow              12  
  1843. X#define X_CirculateWindow              13  
  1844. X#define X_GetGeometry                  14
  1845. X#define X_QueryTree                    15
  1846. X#define X_InternAtom                   16
  1847. X#define X_GetAtomName                  17
  1848. X#define X_ChangeProperty               18 
  1849. X#define X_DeleteProperty               19 
  1850. X#define X_GetProperty                  20
  1851. X#define X_ListProperties               21 
  1852. X#define X_SetSelectionOwner            22    
  1853. X#define X_GetSelectionOwner            23    
  1854. X#define X_ConvertSelection             24   
  1855. X#define X_SendEvent                    25
  1856. X#define X_GrabPointer                  26
  1857. X#define X_UngrabPointer                27
  1858. X#define X_GrabButton                   28
  1859. X#define X_UngrabButton                 29
  1860. X#define X_ChangeActivePointerGrab      30          
  1861. X#define X_GrabKeyboard                 31
  1862. X#define X_UngrabKeyboard               32 
  1863. X#define X_GrabKey                      33
  1864. X#define X_UngrabKey                    34
  1865. X#define X_AllowEvents                  35       
  1866. X#define X_GrabServer                   36      
  1867. X#define X_UngrabServer                 37        
  1868. X#define X_QueryPointer                 38        
  1869. X#define X_GetMotionEvents              39           
  1870. X#define X_TranslateCoords              40                
  1871. X#define X_WarpPointer                  41       
  1872. X#define X_SetInputFocus                42         
  1873. X#define X_GetInputFocus                43         
  1874. X#define X_QueryKeymap                  44       
  1875. X#define X_OpenFont                     45    
  1876. X#define X_CloseFont                    46     
  1877. X#define X_QueryFont                    47
  1878. X#define X_QueryTextExtents             48     
  1879. X#define X_ListFonts                    49  
  1880. X#define X_ListFontsWithInfo               50 
  1881. X#define X_SetFontPath                  51 
  1882. X#define X_GetFontPath                  52 
  1883. X#define X_CreatePixmap                 53        
  1884. X#define X_FreePixmap                   54      
  1885. X#define X_CreateGC                     55    
  1886. X#define X_ChangeGC                     56    
  1887. X#define X_CopyGC                       57  
  1888. X#define X_SetDashes                    58     
  1889. X#define X_SetClipRectangles            59             
  1890. X#define X_FreeGC                       60  
  1891. X#define X_ClearArea                    61             
  1892. X#define X_CopyArea                     62    
  1893. X#define X_CopyPlane                    63     
  1894. X#define X_PolyPoint                    64     
  1895. X#define X_PolyLine                     65    
  1896. X#define X_PolySegment                  66       
  1897. X#define X_PolyRectangle                67         
  1898. X#define X_PolyArc                      68   
  1899. X#define X_FillPoly                     69    
  1900. X#define X_PolyFillRectangle            70             
  1901. X#define X_PolyFillArc                  71       
  1902. X#define X_PutImage                     72    
  1903. X#define X_GetImage                     73 
  1904. X#define X_PolyText8                    74     
  1905. X#define X_PolyText16                   75      
  1906. X#define X_ImageText8                   76      
  1907. X#define X_ImageText16                  77       
  1908. X#define X_CreateColormap               78          
  1909. X#define X_FreeColormap                 79        
  1910. X#define X_CopyColormapAndFree          80               
  1911. X#define X_InstallColormap              81           
  1912. X#define X_UninstallColormap            82             
  1913. X#define X_ListInstalledColormaps       83                  
  1914. X#define X_AllocColor                   84      
  1915. X#define X_AllocNamedColor              85           
  1916. X#define X_AllocColorCells              86           
  1917. X#define X_AllocColorPlanes             87            
  1918. X#define X_FreeColors                   88      
  1919. X#define X_StoreColors                  89       
  1920. X#define X_StoreNamedColor              90           
  1921. X#define X_QueryColors                  91       
  1922. X#define X_LookupColor                  92       
  1923. X#define X_CreateCursor                 93        
  1924. X#define X_CreateGlyphCursor            94             
  1925. X#define X_FreeCursor                   95      
  1926. X#define X_RecolorCursor                96         
  1927. X#define X_QueryBestSize                97         
  1928. X#define X_QueryExtension               98          
  1929. X#define X_ListExtensions               99          
  1930. X#define X_ChangeKeyboardMapping        100
  1931. X#define X_GetKeyboardMapping           101
  1932. X#define X_ChangeKeyboardControl        102                
  1933. X#define X_GetKeyboardControl           103             
  1934. X#define X_Bell                         104
  1935. X#define X_ChangePointerControl         105
  1936. X#define X_GetPointerControl            106
  1937. X#define X_SetScreenSaver               107          
  1938. X#define X_GetScreenSaver               108          
  1939. X#define X_ChangeHosts                  109       
  1940. X#define X_ListHosts                    110     
  1941. X#define X_SetAccessControl             111               
  1942. X#define X_SetCloseDownMode             112
  1943. X#define X_KillClient                   113 
  1944. X#define X_RotateProperties           114
  1945. X#define X_ForceScreenSaver           115
  1946. X#define X_SetPointerMapping            116
  1947. X#define X_GetPointerMapping            117
  1948. X#define X_SetModifierMapping           118
  1949. X#define X_GetModifierMapping           119
  1950. X#define X_NoOperation                  127
  1951. X
  1952. X/* restore these definitions back to the typedefs in X.h */
  1953. X#undef Window
  1954. X#undef Drawable
  1955. X#undef Font
  1956. X#undef Pixmap
  1957. X#undef Cursor
  1958. X#undef Colormap
  1959. X#undef GContext
  1960. X#undef Atom
  1961. X#undef VisualID
  1962. X#undef Time
  1963. X#undef KeyCode
  1964. X#undef KeySym
  1965. X
  1966. X#endif /* XPROTO_H */
  1967. X
  1968. END_OF_FILE
  1969. if test 49611 -ne `wc -c <'Xproto.h'`; then
  1970.     echo shar: \"'Xproto.h'\" unpacked with wrong size!
  1971. fi
  1972. # end of 'Xproto.h'
  1973. fi
  1974. echo shar: End of archive 3 \(of 3\).
  1975. cp /dev/null ark3isdone
  1976. MISSING=""
  1977. for I in 1 2 3 ; do
  1978.     if test ! -f ark${I}isdone ; then
  1979.     MISSING="${MISSING} ${I}"
  1980.     fi
  1981. done
  1982. if test "${MISSING}" = "" ; then
  1983.     echo You have unpacked all 3 archives.
  1984.     rm -f ark[1-9]isdone
  1985. else
  1986.     echo You still need to unpack the following archives:
  1987.     echo "        " ${MISSING}
  1988. fi
  1989. ##  End of shell archive.
  1990. exit 0
  1991.  
  1992. -- 
  1993.          -- Greg, lee@uhccux.uhcc.hawaii.edu
  1994.